using System;
namespace CommandLib.Base
{
	public class DateTimeHelper
	{
		private static readonly DateTime dtUnix = new DateTime(1970, 1, 1, 0, 0, 0);
		public static DateTime UNIXtoDateTime(long seconds)
		{
			double seconds2 = Convert.ToDouble(seconds);
			return DateTimeHelper.UNIXtoDateTime(seconds2);
		}
		public static DateTime UNIXtoDateTime(ulong seconds)
		{
			double seconds2 = Convert.ToDouble(seconds);
			return DateTimeHelper.UNIXtoDateTime(seconds2);
		}
		public static DateTime UNIXtoDateTime(double seconds)
		{
			DateTime time = DateTimeHelper.dtUnix.AddSeconds(seconds);
			return TimeZone.CurrentTimeZone.ToLocalTime(time);
		}
	}
}
